Skip to content

Permite Vínculo de Botão de Keypad a Cenas e Atualiza Teste#48

Draft
google-labs-jules[bot] wants to merge 1 commit intomainfrom
feature-standalone-rwp-converter
Draft

Permite Vínculo de Botão de Keypad a Cenas e Atualiza Teste#48
google-labs-jules[bot] wants to merge 1 commit intomainfrom
feature-standalone-rwp-converter

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

Esta alteração implementa a funcionalidade de vincular botões de keypad a cenas no conversor autônomo e expande o cenário de teste.

As principais mudanças são:

  1. Atualização do Conversor (standalone_roehn_converter.py):
    • O script agora mapeia os IDs das cenas para seus GUIDs gerados.
    • A ordem de processamento foi corrigida para garantir que as cenas sejam criadas antes dos keypads, permitindo a vinculação correta.
    • A lógica de criação de botões foi estendida para reconhecer target_type: 'cena', permitindo que um botão ative uma cena com o Modo apropriado no arquivo .rwp.
  2. Expansão do Cenário de Teste (cenario_simples.json):
    • A propriedade scene_movers: false foi adicionada às cenas, conforme necessário para a integridade do arquivo .rwp.
    • Um novo keypad, "Keypad Cenas", foi adicionado ao ambiente "Jantar".
    • Os botões deste novo keypad foram configurados para ativar as duas cenas existentes, servindo como um caso de teste para a nova funcionalidade.

PR created automatically by Jules for task 9201591816472769160

This commit enhances the standalone RWP converter to support linking keypad buttons to scenes and expands the test scenario.

- Updates `standalone_roehn_converter.py`:
  - Implements a `_scene_guid_map` to track scene GUIDs.
  - Corrects the processing order to ensure scenes are registered before keypads.
  - Extends button logic to handle `target_type: 'cena'`, setting the correct `.rwp` `Modo` for scene activation.
- Updates `cenario_simples.json`:
  - Adds the mandatory `scene_movers: false` property to the light-based scenes.
  - Adds a new "Keypad Cenas" keypad.
  - Configures the new keypad's buttons to activate the two existing scenes, providing a test case for the new functionality.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants